package com.guys8.cemsbackend.DTO;

import com.guys8.cemsbackend.entity.User;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class UserInformation {
    private String schoolId;
    private String userName;
    private String userSex;
    //学院
    private String userAcademy;
    //专业
    private String userMajor;
    //职位
    private String userPosts;
    //宿舍或居住地址
    private String userAddress;
    //
    private Integer picture;

    UserInformation() {
    }

    public UserInformation(User user) {
        setSchoolId(user.getSchoolId());
        setUserName(user.getUserName());
        setUserSex(user.getUserSex());
        setUserAcademy(user.getUserAcademy());
        setUserMajor(user.getUserMajor());
        setUserPosts(user.getUserPosts());
        setUserAddress(user.getUserAddress());
        setPicture(user.getExt1());
    }

}

